<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>积分转换分规则</a></li>
        <li><a href="{:url('AdminPoints/rule_add')}">添加规则</a></li>
    </ul>

    <!--<form method="post" class="js-ajax-form" action="{:url('AdminCategory/listOrder')}">-->

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>规则名称</th>
                <th>描述</th>
                <th>条件（小时/次数）</th>
                <th>分值</th>
                <th width="200">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.desc}</td>
                    <td>{$vo.num}</td>
                    <td>{$vo.point}</td>
                    <td>
                        <a class="btn btn-xs btn-primary" href="{:url('AdminPoints/rule_add',['id'=>$vo.id])}">编辑</a>
                        <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('AdminPoints/rule_del',['id'=>$vo.id])}">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    <!--</form>-->
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    $(document).ready(function () {
        Wind.css('treeTable');
        Wind.use('treeTable', function () {
            $("#menus-table").treeTable({
                indent: 20,
                initialState: 'expanded'
            });
        });
    });

</script>
</body>
</html>